<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WELCOME TO FILE MANAGER!!!</title>
</head>
<body>
<%@ page import="file_functions.*" %>
<%
String dir = new String ((byte[])session.getAttribute("fold"), "UTF-8");
session.setAttribute("fold", null);
Manager man = new Manager(dir);
String[] list = request.getParameterValues("textfield");
boolean result = man.create_folder(new String(list[0].getBytes("ISO-8859-1"), "UTF8"));
if (result)
	out.println("<br>FOLDER WAS CREATED SUCCESSFULLY");
else
	out.println("<br>some error occured");

%>
<br>
<a href = "main.jsp">back to manager</a>
</body>
</html>